package com.game.clases;

import javax.swing.JLabel;

/**
 *
 * @author David Cuellar
 */
public class Fosforo extends JLabel{

    public Fosforo() {
    }
    
    
    public Fosforo(FosforoDireccion fd){
        
        if (fd == fd.RIGHT) {
            setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/game/images/fosforo_small_right.png")));
        }
        if (fd == fd.LEFT) {
            setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/game/images/fosforo_small_left.png")));
        }
        
        setSize(70, 25);
        setVisible(true);
    }
    
    
    
}
